import matplotlib.pyplot as plt
import numpy as np
x_arange = np.arange(0,2* np.pi,0.1)
y_arange = np.sin(x_arange)
x_linspace = np.linspace(0,2 * np.pi,100)
y_linspace = np.sin(x_linspace)
plt.figure(figsize=(12,4))
plt.subplot(1,2,1)
plt.plot(x_linspace,y_linspace,label='arange')
plt.title('Using arange()')
plt.legend()
plt.subplot(1,2,2)
plt.plot(x_linspace,y_linspace,label='linspace')
plt.title('Using linspace()')
plt.legend()
plt.show()


